package cha02;

public class Operator {

    public static void main(String[] args) {

        //运算符
        //算术运算符
        int i = 10;
        int j = 20;
        System.out.println(i + j);
        System.out.println(i - j);
        System.out.println(i * j);
        System.out.println(i / j);
        System.out.println(i % j);
        System.out.println(i++);
        System.out.println(++i);
        System.out.println(i--);
        System.out.println(--i);
        System.out.println(i);
        System.out.println(j);

        //关系运算符
        //逻辑运算符
        //位运算符
        //赋值运算符
        //三元运算符
        //instanceof运算符
        //字符串连接运算符
        //其他运算符
        //运算符优先级
        //1.括号
        //2.一元运算符
        //3.乘除
        //4.加减
        //5.位移
        //6.关系
        //7.相等
        //8.位与
        //9.位异或
        //10.位或
        //11.逻辑与
        //12.逻辑或
        //13.条件
        //14.赋值
        //15.逗号

    }
}
